package com.yuke.cloud.service.wmc.service.impl;

import com.yuke.cloud.common.core.support.BaseService;
import com.yuke.cloud.service.api.wmc.dto.WmsGiftDto;
import com.yuke.cloud.service.wmc.dao.WmsGiftMapper;
import com.yuke.cloud.service.wmc.entity.WmsGift;
import com.yuke.cloud.service.wmc.service.WmsGiftService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;


/**
 * Created by zn on 2020/05/12.
 */
@Service
@Transactional
public class WmsGiftServiceImpl extends BaseService<WmsGift> implements WmsGiftService {
    @Resource
    private WmsGiftMapper wmsGiftMapper;

    @Override
    public List<WmsGiftDto> getGiftList(WmsGiftDto wmsGiftDto){
        return wmsGiftMapper.getGiftList(wmsGiftDto);
    }

    @Override
    public Integer updateWmsGift(WmsGiftDto wmsGiftDto){
       return wmsGiftMapper.updateWmsGift(wmsGiftDto);
    }
}
